package com.donzell.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * EcsVoteOption entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "ecs_vote_option")
public class EcsVoteOption implements java.io.Serializable {

	// Fields

	private Short optionId;
	private Short voteId;
	private String optionName;
	private Integer optionCount;
	private Short optionOrder;

	// Constructors

	/** default constructor */
	public EcsVoteOption() {
	}

	/** full constructor */
	public EcsVoteOption(Short voteId, String optionName, Integer optionCount, Short optionOrder) {
		this.voteId = voteId;
		this.optionName = optionName;
		this.optionCount = optionCount;
		this.optionOrder = optionOrder;
	}

	// Property accessors
	@Id
	@SequenceGenerator(name = "SHOP_IDENTIFIER_IDENT_ID_GENERATOR", sequenceName = "SHOP_ID_SEQUENCE", allocationSize = 1)
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SHOP_IDENTIFIER_IDENT_ID_GENERATOR")
	@Column(name = "option_id", unique = true, nullable = false)
	public Short getOptionId() {
		return this.optionId;
	}

	public void setOptionId(Short optionId) {
		this.optionId = optionId;
	}

	@Column(name = "vote_id", nullable = false)
	public Short getVoteId() {
		return this.voteId;
	}

	public void setVoteId(Short voteId) {
		this.voteId = voteId;
	}

	@Column(name = "option_name", nullable = false, length = 250)
	public String getOptionName() {
		return this.optionName;
	}

	public void setOptionName(String optionName) {
		this.optionName = optionName;
	}

	@Column(name = "option_count", nullable = false)
	public Integer getOptionCount() {
		return this.optionCount;
	}

	public void setOptionCount(Integer optionCount) {
		this.optionCount = optionCount;
	}

	@Column(name = "option_order", nullable = false)
	public Short getOptionOrder() {
		return this.optionOrder;
	}

	public void setOptionOrder(Short optionOrder) {
		this.optionOrder = optionOrder;
	}

}